app.service("carService",function($http){
	this.addGoods=function(pid,qty){
		return $http.get("/car/add?id=" + pid + "&qty=" + qty);
	}
	this.loadDatas=function(){
		return $http.get("/car/load");
	}
//	this.deleteGoods=function(pid){
//		return $http.get("delete.car?id=" + pid);
//	}
	this.deleteDatas=function(pid){
		return $http.get("/car/delete?id="+pid);
	}
	this.modifyGoodsQty=function(pid,qty){
		return $http.get("/car/modify?id="+pid+"&qty="+qty);
	}
	this.deleteAllGoods=function(){
		return $http.get("car/deleteall");
	}
});